import Experience from "@/components/module/experience";
import Others from "@/components/module/others";

const DetailInfo = ({detailData, setDetailData}: any) => {

    return (detailData?.map((item: any, index: number) => (
            item?.isShow &&
            <div className={'space-y-4'}>
                {item?.classify === 'EXPERIENCE' &&
                    <Experience data={item} pIndex={index} detailData={detailData} setDetailData={setDetailData}/>}
                {item?.classify === 'OTHERS' &&
                    <Others data={item} pIndex={index} detailData={detailData} setDetailData={setDetailData}/>}
            </div>
        ))
    )
}

export default DetailInfo;